Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jan 8, 2026

  • Do not store the MacroCallId of the "real" expansion anywhere, so that the IDE layer could not expand it by mistake
  • Fix a stupid bug where we used the directive of the derive itself instead of of the macro, leading us to re-expand it again and again.

Fixes #21382.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 8, 2026
 - Do not store the `MacroCallId` of the "real" expansion anywhere, so that the IDE layer could not expand it by mistake
 - Fix a stupid bug where we used the directive of the `derive` itself instead of of the macro, leading us to re-expand it again and again.
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Jan 8, 2026
Merged via the queue into rust-lang:master with commit 36a2b8f Jan 8, 2026
15 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the no-derive-register branch January 8, 2026 14:50
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In latest release (0.3.2735) I got severe memory problems - related to proc macros

3 participants